package com.liushuai.eas.service;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.liushuai.eas.mapper.AdministratorMapper;
import com.liushuai.eas.pojo.Administrator;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.io.Serializable;
import java.util.Collection;
import java.util.List;
import java.util.Map;

@Service
public class AdministratorImp implements AdministratorMapper {

    @Resource
    private AdministratorMapper administratorMapper;

    @Override
    public int insert(Administrator entity) {
        return administratorMapper.insert(entity);
    }

    @Override
    public int deleteById(Serializable id) {
        return administratorMapper.deleteById(id);
    }

    @Override
    public int deleteById(Administrator entity) {
        return administratorMapper.deleteById(entity);
    }

    @Override
    public int deleteByMap(Map<String, Object> columnMap) {
        return 0;
    }

    @Override
    public int delete(Wrapper<Administrator> queryWrapper) {
        return administratorMapper.delete(queryWrapper);
    }

    @Override
    public int deleteBatchIds(Collection<?> idList) {
        return 0;
    }

    @Override
    public int updateById(Administrator entity) {
        return administratorMapper.updateById(entity);
    }

    @Override
    public int update(Administrator entity, Wrapper<Administrator> updateWrapper) {
        return 0;
    }

    @Override
    public Administrator selectById(Serializable id) {
        return administratorMapper.selectById(id);
    }

    @Override
    public List<Administrator> selectBatchIds(Collection<? extends Serializable> idList) {
        return null;
    }

    @Override
    public List<Administrator> selectByMap(Map<String, Object> columnMap) {
        return null;
    }

    @Override
    public Administrator selectOne(Wrapper<Administrator> queryWrapper) {
        return administratorMapper.selectOne(queryWrapper);
    }

    @Override
    public Long selectCount(Wrapper<Administrator> queryWrapper) {
        return null;
    }

    @Override
    public List<Administrator> selectList(Wrapper<Administrator> queryWrapper) {
        return null;
    }

    @Override
    public List<Map<String, Object>> selectMaps(Wrapper<Administrator> queryWrapper) {
        return null;
    }

    @Override
    public List<Object> selectObjs(Wrapper<Administrator> queryWrapper) {
        return null;
    }

    @Override
    public <P extends IPage<Administrator>> P selectPage(P page, Wrapper<Administrator> queryWrapper) {
        return administratorMapper.selectPage(page,queryWrapper);
    }

    @Override
    public <P extends IPage<Map<String, Object>>> P selectMapsPage(P page, Wrapper<Administrator> queryWrapper) {
        return null;
    }
}
